﻿using UnityEngine;
using System.Collections;
using System;

public class Cooldown {

	long acabaEm = getMS();

	public Cooldown(long millis) {
		acabaEm = (getMS() + millis);
	}

	public bool jaAcabou() {
		return acabaEm < getMS();
	}

	public static long getMS() {
		return DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond;
	}
}
